Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a Github edit link automatically to a page #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yihui
Copy link
Owner

@yihui yihui commented Jun 21, 2017

This PR contains two commits. The first commit is the implementation, and the second commit only contains two examples.

You should read https://bookdown.org/yihui/blogdown/templates.html and replace the edit link (GithubEdit) https://github.com/yihui/hugo-xmin/edit/feature/github-edit/exampleSite/content/ with your own link. You must replace the USER (yihui), REPO (hugo-xmin), BRANCH (feature/github-edit), and the path after BRANCH (exampleSite/content/) depending on your repo settings. In most cases, BRANCH is most likely to be master, and the path is likely to be content/. Please do not blindly follow my GithubEdit link here. You should understand what each part means exactly.

Preview at https://deploy-preview-6--hugo-xmin.netlify.com/ (see the link "Edit this page" in the footer of every page).

@yihui yihui force-pushed the feature/github-edit branch 2 times, most recently from 2d53f6b to 11162dc Compare June 21, 2017 19:30
yihui referenced this pull request in rbind/njtierney.com Jun 22, 2017
@yihui yihui added the feature label Jun 22, 2017
@yihui yihui force-pushed the feature/github-edit branch 2 times, most recently from 80a8a25 to 55cb8a6 Compare July 3, 2017 18:18
@yihui yihui force-pushed the feature/github-edit branch 3 times, most recently from a624392 to 95b49ff Compare July 13, 2017 07:08
@yihui yihui force-pushed the feature/github-edit branch from 95b49ff to b30d8b6 Compare August 9, 2017 16:48
@yihui yihui force-pushed the feature/github-edit branch from b30d8b6 to eb862cb Compare August 29, 2017 03:02
@yihui yihui force-pushed the feature/github-edit branch from eb862cb to 0b6a200 Compare October 8, 2017 14:24
@yihui yihui force-pushed the feature/github-edit branch from 0b6a200 to 38b3f10 Compare October 27, 2017 03:17
@yihui yihui force-pushed the feature/github-edit branch from 38b3f10 to d994ad5 Compare March 21, 2018 15:38
@yihui yihui force-pushed the feature/github-edit branch from d994ad5 to b36f102 Compare August 30, 2018 15:02
@yihui yihui force-pushed the feature/github-edit branch from b36f102 to f68a1f5 Compare October 1, 2018 14:33
@yihui yihui force-pushed the feature/github-edit branch from f68a1f5 to dc31dda Compare March 20, 2019 02:59
@yihui yihui force-pushed the feature/github-edit branch from dc31dda to 45fe8f9 Compare April 18, 2019 19:01
@yihui yihui force-pushed the feature/github-edit branch from 45fe8f9 to 7f7badd Compare March 17, 2020 03:07
@yihui yihui force-pushed the feature/github-edit branch from 7f7badd to c88040f Compare July 24, 2020 19:48
@yihui yihui force-pushed the feature/github-edit branch 2 times, most recently from 3901584 to 58e17cb Compare October 11, 2020 20:54
@yihui yihui force-pushed the feature/github-edit branch from 98f1dab to 0bf14ae Compare June 15, 2022 03:49
@yihui yihui force-pushed the feature/github-edit branch from 0bf14ae to 57bf870 Compare February 5, 2024 14:56
@yihui yihui force-pushed the feature/github-edit branch from 57bf870 to ecd6b76 Compare March 4, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant